import minRequest from '@/config/minRequest.js'
const url = '/customer'
/**
 * 查询可用模板
 */
export const usableList = (data) => minRequest.post(url + `/invitationLetter/usableList`, data)


/**
 * 模板详情

 */
export const invitationLetterInfo = (id) => minRequest.get(url + `/invitationLetter/info/${id}`,)
/**
 * 模板 预览
 */
export const businessInvitationLetter = (data) => minRequest.post(url + `/businessInvitationLetter/create`, data)
export const update = (data) => minRequest.post(url + `/businessInvitationLetter/update`, data)
/**
 * l列表
 */
export const businessInvitationLetterList = (data) => minRequest.post(url + `/businessInvitationLetter/list`, data)
/**
 * l列表
 */
export const deleteFun = (id) => minRequest.post(url + `/businessInvitationLetter/delete/${id}`)
// 查看邀请
export const getOfLetterTemplate = (id) => minRequest.get(url + `/businessInvitationLetter/getOfLetterTemplate/${id}`,)